package cn.zl.springcloud.service;

import cn.zl.springcloud.dao.DeptDao;
import cn.zl.springcloud.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhanglang
 * @Date 2020/4/10
 */
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptDao deptDao;

    @Override
    public boolean addDept(Dept dept) {
        return this.deptDao.addDept(dept);
    }

    @Override
    public Dept queryById(long id) {
        return this.deptDao.queryById(id);
    }

    @Override
    public List<Dept> queryAll() {
        return this.deptDao.queryAll();
    }

}
